<?php
use \Yaf\Controller_Abstract;

class Controller extends Controller_Abstract
{
    protected function init()
    {
        /**
         * 如果是Ajax请求, 则关闭HTML输出
         */
        if ($this->getRequest()->isXmlHttpRequest()) {
            \Yaf\Dispatcher::getInstance()->disableView();
        }
    }
}
